Func _StartMenu_DrawMenu ()
	_GUI_DrawWallpaper ()

	_GUI_DrawString ("WISH powered by BlackCon (v0.0.1)",0, 0)

	_GUI_DrawButton ("Messages", 30, 77)
	_GUI_DrawButton ("Join Battle", 30, 40)

	_StartMenu_DrawNews ()

	_Mouse_DrawCursor ()
	_GDIPlus_GraphicsDrawImage($hGraphics, $hBitmap, 0, 0)
EndFunc

Func _StartMenu_DrawNews ()
	If $sServerNews = "" Then $sServerNews = "error"
	_GDIPlus_GraphicsFillRect($hBuffer, 30, 130, 215, 400, $hButtonBrush)
	_GDIPlus_GraphicsDrawRect($hBuffer, 30, 130, 215, 400)
	_GUI_DrawString($sServerNews, 33, 133)
EndFunc

Func _StartMenu_DrawCharBox ()
	_GDIPlus_GraphicsDrawImageRectRect($hBuffer, $hCharactersImage, 100, 0, 50, 80, 385, 40, 50, 60)
	_GDIPlus_GraphicsDrawRect($hBuffer, 385, 40, 50, 80)
EndFunc

Func _StartMenu_DrawMessageButton ()
	_GDIPlus_GraphicsFillRect($hBuffer, 300, 40, 55, 55, $hButtonBrush)
	_GDIPlus_GraphicsDrawRect($hBuffer, 300, 40, 55, 55)
	_GDIPlus_GraphicsDrawImageRect($hBuffer, $hMailIcon, 310, 50, 35, 35)
EndFunc

Func _StartMenu_MenuLoop ()
	_Write ("_StartMenu_MenuLoop ()")
	While 1
		_StartMenu_DrawMenu ()
		_StartMenu_CheckInput ()
	WEnd
EndFunc

Func _StartMenu_CheckInput ()
	If _IsPressed("1B") Then
		Exit
	EndIf
	If _Mouse_CheckClickedArea (30, 77, 100, 25) Then
		_Message_MessageMenu ()
	EndIf
	If _Mouse_CheckClickedArea (30, 40, 100, 25) Then
;~ 		MsgBox(0, "", "Wait for v0.1.1_5 to do this")
		_GDIPlus_GraphicsClear($hBuffer, 0xFFFFFFFF)
		_Game_GameLoop ()
	EndIf
EndFunc